//下拉刷新
var pullRefresh = new auiPullToRefresh({
    container: document.querySelector('.aui-refresh-content'),
    triggerDistance: 100
},function(ret){
    if(ret.status=="success"){
        setTimeout(function(){
            var wrap = document.getElementById("demo")
            var lis = wrap.querySelectorAll('.aui-card-list');
            for (var i = lis.length, length = i + 1; i < length; i++) {
                var html = '<div class="aui-card-list">'+
                    '<div class="aui-card-list-header">'+
                    '<img src="img/serviceReminding-img/fwtx-5.png">\n' +
                    ' <span>蚂蚁财富 我的余额宝</span>\n' +
                    ' <span>08：17</span>'+
                    '</div>'+
                    '<div class="aui-card-list-content-padded">'+
                    ' <p>+10.56</p>'+
                    '</div>'+
                    '<div class="aui-card-list-footer">'+
                    ' <p>09-09 余额收益</p>'+
                    '</div>'+
                    '</div>';
                wrap.insertAdjacentHTML('afterbegin', html);
            }
            pullRefresh.cancelLoading(); //刷新成功后调用此方法隐藏
        },1500)
    }
    var show=document.getElementsByTagName('footer')[0];
    show.style.display='block';
});